package com.atguigu.gulimall.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * (这里)想远程调用别的服务步骤：
 * 1， pom引入 open-feign
 * 2， 编写接口(@FeignClient("gulimall_xxxx) ，告诉springcloud此接口需要调用远程服务
 *      a, 接口里，写上要是用这个服务的那个方法：写上方法名还有@RequestMapping("xx")
 * 3， 开启远程调用功能：@EnableFeignClients
 */

// 开启远程调用功能
@EnableFeignClients(basePackages = "com.atguigu.gulimall.member.feign")
@EnableDiscoveryClient // 开启注册中心

@SpringBootApplication
public class GulimallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallMemberApplication.class, args);
    }

}
